package com.TuShuGusn;

public class Book {
    private String bookName;
    private String authorName;
    private String publisher;//出版社
    private double price;

    //..................................
    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    //.................................
    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    //...................................
    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    //.....................................
    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    //........................................
    public String getBookInfo() {
        return "书名：" + bookName +"\t\t"+ "作者：" + authorName+"\t\t"
                + "出版社名：" + publisher +"\t\t"+ "价格：" + price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "书名：" + bookName + '\'' +
                ", 作者：'" + authorName + '\'' +
                ", 出版社：" + publisher + '\'' +
                ", 价格：" + price +
                '}';
    }
}
